package cn.lefull.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.servlet.*;
import java.io.IOException;

/**
 * @description:
 * @auther: qijiang
 * @date: 2018/12/26 10:35
 */
@Component
@Slf4j
public class TestFilter implements Filter {

    @Override
    public void init(javax.servlet.FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
       log.debug("-------------------------filter-----------");
        chain.doFilter(request,response);
    }

    @Override
    public void destroy() {

    }
}
